From 3af2f25803dbd578e1c6264ba47212a94018757b Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Wed, 18 Nov 2015 12:55:56 +0900 Subject: [PATCH] Use bound-and-true-p for byte compile warning --- which-key.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/which-key.el b/which-key.el index 919fe5478d8..7c57ccfdea1 100644 --- a/which-key.el +++ b/which-key.el @@ -1426,8 +1426,7 @@ area." (and (< 1 n-pages) paging-key-bound) use-descbind) (not (and which-key-allow-evil-operators - (boundp 'evil-this-operator) - evil-this-operator))) + (bound-and-true-p evil-this-operator)))) (propertize (format "[%s %s]" key (if use-descbind "help" next-page-n)) 'face 'which-key-note-face)))) @@ -1630,7 +1629,7 @@ Finally, show the buffer." (not which-key-inhibit) ;; Do not display the popup if a command is currently being ;; executed - (or (and which-key-allow-evil-operators evil-this-operator) + (or (and which-key-allow-evil-operators (bound-and-true-p evil-this-operator)) (null this-command))) (which-key--create-buffer-and-show prefix-keys)))) -- 2.30.2